package com.core.zyyz.amc.modules.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.core.zyyz.amc.modules.mapper.AmcCusBankBMapper;
import com.core.zyyz.amc.modules.domain.AmcCusBankB;
import com.core.zyyz.amc.modules.service.AmcCusBankBService;

/**
 * 客户银行账户Service业务层处理
 *
 * @author lfs
 * @date 2024-11-26
 */
@Service
public class AmcCusBankBServiceImpl implements AmcCusBankBService {
    @Autowired
    private AmcCusBankBMapper amcCusBankBMapper;

    /**
     * 查询客户银行账户
     *
     * @param cusBankId 客户银行账户主键
     * @return 客户银行账户
     */
    @Override
    public AmcCusBankB selectAmcCusBankBByCusBankId(String cusBankId)
    {
        return amcCusBankBMapper.selectAmcCusBankBByCusBankId(cusBankId);
    }

    /**
     * 查询客户银行账户列表
     *
     * @param amcCusBankB 客户银行账户
     * @return 客户银行账户
     */
    @Override
    public List<AmcCusBankB> selectAmcCusBankBList(AmcCusBankB amcCusBankB)
    {
        return amcCusBankBMapper.selectAmcCusBankBList(amcCusBankB);
    }

    /**
     * 新增客户银行账户
     *
     * @param amcCusBankB 客户银行账户
     * @return 结果
     */
    @Override
    public int insertAmcCusBankB(AmcCusBankB amcCusBankB)
    {
        return amcCusBankBMapper.insertAmcCusBankB(amcCusBankB);
    }

    /**
     * 修改客户银行账户
     *
     * @param amcCusBankB 客户银行账户
     * @return 结果
     */
    @Override
    public int updateAmcCusBankB(AmcCusBankB amcCusBankB)
    {
        return amcCusBankBMapper.updateAmcCusBankB(amcCusBankB);
    }

    /**
     * 批量删除客户银行账户
     *
     * @param cusBankIds 需要删除的客户银行账户主键
     * @return 结果
     */
    @Override
    public int deleteAmcCusBankBByCusBankIds(String[] cusBankIds)
    {
        return amcCusBankBMapper.deleteAmcCusBankBByCusBankIds(cusBankIds);
    }

    /**
     * 删除客户银行账户信息
     *
     * @param cusBankId 客户银行账户主键
     * @return 结果
     */
    @Override
    public int deleteAmcCusBankBByCusBankId(String cusBankId)
    {
        return amcCusBankBMapper.deleteAmcCusBankBByCusBankId(cusBankId);
    }

    /**
     * 根据开户账号查询客户银行账户列表
     *
     * @param bankAccountNumber 开户账号
     * @return 客户银行账户集合
     */
    @Override
    public List<AmcCusBankB> queryAmcCusBankBList(String bankAccountNumber)
    {
        return amcCusBankBMapper.queryAmcCusBankBList(bankAccountNumber);
    }
}
